﻿<Window x:Class="fleetIt.SettingsUI"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:fleetIt="clr-namespace:fleetIt"
    Title="Settings" Height="155" Width="333" 
        Loaded="Window_Loaded"
        ResizeMode="NoResize" WindowStyle="ToolWindow" ShowInTaskbar="False" WindowStartupLocation="CenterOwner">
    <Window.CommandBindings>
        <CommandBinding x:Name="SaveSettingsCommand" Command="fleetIt:Commands.SaveSettings" 
                        CanExecute="SaveSettingsCommand_CanExecute" Executed="SaveSettingsCommand_Executed" />
    </Window.CommandBindings>
    <Grid Margin="10">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>
        <Label Grid.Column="0" Grid.Row="1" Content="Refresh Interval" />
        <TextBox Name="txtInterval" Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="1" />
        <Label Grid.Column="1" Grid.Row="2" Content="minutes" />
        <CheckBox Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="2" 
                  Name="chkInvokeAtStartUp" Content="Load fleet It an Windows Startup" />
        <Button Grid.Row="4" Grid.Column="1" IsDefault="True" Command="fleetIt:Commands.SaveSettings" Content="Save Settings" />
        <Button Grid.Row="4" Grid.Column="2" IsCancel="True" Content="Cancel" />
    </Grid>
</Window>
